﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;

namespace KDService
{
    public partial class KDWorkService : ServiceBase
    {
        public KDWorkService()
        {
            InitializeComponent();
        }

        protected override void OnStart(string[] args)
        {

            DoWork();
        }

        public  void  DoWork()
        {
            KDService.Entity.ProcParameter Parameter = new Entity.ProcParameter()
            {

                EffectiveDate = KDWork.Default.EffectiveDate,
                ProcList = KDWork.Default.AppName
            };

            KDService.Work.ProcManager.InitRun(Parameter);
        }


        protected override void OnStop()
        {
        }
    }
}
